<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition template="./WEB-INF/templates/template.xhtml">

            <ui:define name="content">
  <f:loadBundle basename="org.inftel.scrum.message.Messages" var="msg"/>
  
                <f:view contentType="text/html">
                    <center>
                        <h:form id="form" styleClass="prime-component"> 
                            <p:pickList value="#{myUserListBean.users}" 
                                        var="user" 
                                        itemLabel="#{user}"
                                        itemValue="#{user}"
                                        style="text-align:center;" 
                                        widgetVar="teamsPickList"
                                        id="usersPickListComponent">
                                <f:facet name="sourceCaption">#{msg.sprintPlaningtitle1picklist}</f:facet>  
                                <f:facet name="targetCaption">#{msg.sprintPlaningtitle2picklist}</f:facet>  
                                <p:column style="width:25%;">  
                                    <p:graphicImage value="/images/#{user.photo}" width="40" height="40"/>
                                </p:column>  
                                <p:column style="width:75%">  
                                    #{user.idUser} - #{user.name}
                                </p:column>  
                            </p:pickList>
                            <p:commandButton id="userSubmit" styleClass="button" value="#{msg.sprintPlaningbuttonSubmit}" 
                                             action="#{myUserListBean.insert()}"/>

                        </h:form>
                    </center>
                </f:view>
<!--                <h:outputText value="#{selectedProjectBean.name}"/>-->
            </ui:define>
        </ui:composition>
    </body>
</html>
